package com._520it.day1._01_connection;


import java.sql.DriverManager;

import org.junit.Test;

public class ConectionDemo {
	
	@Test
	public void testName() throws Exception {
		//1.加载驱动
		Class.forName("com.mysql.jdbc.Driver");
		//2.获取连接
		DriverManager.getConnection("jdbc:mysql://localhost:3306/jdbcdemo", "root", "");
		Thread.sleep(5000);
	}
}
